package com.dxy.yesas2020goals.study.partone.disignprinciple.compositeaggregatereuse;

/**
 * @author victorydeng
 * @Classname ProductDao
 * @Description TODO
 * @Date 2020/2/24 22:43
 * @Created by victorydeng
 */
public class ProductDao {

  private DBConnection dbConnection;

  public void setConnection(DBConnection dbConnection) {
    this.dbConnection = dbConnection;
  }

  public void addProduct() {
    String conn = dbConnection.getConnection();
    System.out.println("获得数据库连接");
  }
}
